package org.jeecg.modules.fep.entity;

import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 订单模块
 * @Author: jeecg-boot
 * @Date:   2023-04-14
 * @Version: V1.0
 */
@ApiModel(value="fep_orders对象", description="订单模块")
@Data
@TableName("fep_orders")
public class FepOrders implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private java.lang.String orderNo;
	/**顾客*/
	@Excel(name = "顾客", width = 15, dictTable = "fep_buyers", dicText = "username", dicCode = "id")
    @Dict(dictTable = "fep_buyers", dicText = "username", dicCode = "id")
    @ApiModelProperty(value = "顾客")
    private java.lang.String buyerId;
	/**实付总价*/
	@Excel(name = "实付总价", width = 15)
    @ApiModelProperty(value = "实付总价")
    private java.lang.Double payTotalPrice;
    /**应付总价*/
    @Excel(name = "应付总价", width = 15)
    @ApiModelProperty(value = "应支付总价")
    private java.lang.Double ShouldPayTotalPrice;
	/**已支付*/
	@Excel(name = "已支付", width = 15)
    @ApiModelProperty(value = "已支付")
    private java.lang.Double paidAmount;
	/**未支付*/
	@Excel(name = "未支付", width = 15)
    @ApiModelProperty(value = "未支付")
    private java.lang.Double upaidAmount;
	/**品种数*/
	@Excel(name = "品种数", width = 15)
    @ApiModelProperty(value = "品种数")
    private java.lang.Integer quantity;
	/**是否结清*/
	@Excel(name = "是否结清", width = 15, dicCode = "fep_order_is_settle")
    @Dict(dicCode = "fep_order_is_settle")
    @ApiModelProperty(value = "是否结清")
    private java.lang.Integer isSettle;
	/**下单时间*/
	@Excel(name = "下单时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "下单时间")
    private java.util.Date orderTime;
	/**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
    /**
     * 收益
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "收益(表中不存在该字段)")
    private Double sumAll;

    /**
     * 订单量
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "订单量(表中不存在该字段)")
    private Integer orderCount;

    /**
     * 未结清占比
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "未结清占比(表中不存在该字段)")
    private  Integer proportion;

    /**
     * 水果名
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "水果名(表中不存在该字段)")
    private  String productName;

    /**
     * 销量
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "水果年度总销量(表中不存在该字段)")
    private  Integer totalQuantity;


    /**
     * 消费者姓名
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "消费者姓名(表中不存在该字段)")
    private  String username;

    /**
     * 未支付总额
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "未支付总额(表中不存在该字段)")
    private  Double totalUpaid;

}
